<?php
if(isset($_POST['placebet'])) // make bet
{
if($userID == 0)
$userID = 1;
$money = 5;

safe_query("INSERT INTO ".PREFIX."bets (user, money, date, itemID) VALUES ('".$userID."', '".$money."', '".time()."', 1)");
redirect('index.php','',0);

}
else
{
eval ("\$makebet = \"".gettemplate("makebet")."\";");
echo $makebet;

}

?>